//
//  ReportLineModel.m
//  mendianjieke
//
//  Created by 响当当 on 11/5/19.
//  Copyright © 2019 dongzheng. All rights reserved.
//

#import "ReportLineModel.h"

@implementation ReportLineModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        NSArray * allArr = @[@{@"number":@100,@"date":@"11/12"},@{@"number":@200,@"date":@"11/11"},@{@"number":@300,@"date":@"11/10"},@{@"number":@50,@"date":@"11/09"},@{@"number":@60,@"date":@"11/08"},@{@"number":@80,@"date":@"11/07"},@{@"number":@90,@"date":@"11/06"}];
        NSArray * myArr = @[@{@"number":@10,@"date":@"11/12"},@{@"number":@20,@"date":@"11/11"},@{@"number":@30,@"date":@"11/10"},@{@"number":@5,@"date":@"11/09"},@{@"number":@6,@"date":@"11/08"},@{@"number":@8,@"date":@"11/07"},@{@"number":@9,@"date":@"11/06"}];

        
        self.myChartArr = IFNULL(dic[@"myChart"],myArr);
        self.allChartArr = IFNULL(dic[@"allChart"],allArr);
        self.mydata = IFNULL(dic[@"mydata"],[NSDictionary new]);
        self.alldata = IFNULL(dic[@"alldata"], [NSDictionary new]);
    }
    return self;
}
@end
    
